<template>
  <div id="app">
    <header>
      <router-view name="header"></router-view>
    </header>
    <main>
      <router-view name="default"></router-view>
    </main>
    <footer>
      <router-view name="footer"></router-view>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {}
  },
}
</script>

<style lang="less">
html,body,#app {
  height: 100%;
}
#app {
  display: flex;
  flex-flow: column nowrap;

  main {
    flex: 1;
    margin-bottom: 50px;
  }
  footer {
    position: fixed;
    left: 0;
    bottom: 0;
  }
}
</style>
